<!-- template放HTML script放JS style放CSS -->
<!-- 注意:script标签上必须得有setup属性！-->
<template>
<h1>文本指令</h1>
<h1>我们的第一个Vue组件Component</h1>

  <p>{{info}}</p>
  <h4>{{info}}</h4>
  <p>{{info+'下午好'}}</p>
  <button @click="f()">按钮</button>
  <hr>
  <p>{{count}}<</p>
  <button @click="f2()">计数</button>

</template>

<script setup >
import {ref} from "vue";

const info = ref('我是info666')
const f = () => {
  console.log(info.value);
  info.value = '我是新值';
}
const count = ref(0);
const f2 = () => {
  count.value++;
}


</script>


<style scoped>

</style>